package cn.edu.zjicm.wordsnet_d.view;

import cn.edu.zjicm.wordsnet_d.R;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;

public class FakeCheckBox extends ImageView {

	private boolean isChecked = false;

	public FakeCheckBox(Context context) {
		super(context);
	}

	public FakeCheckBox(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	public FakeCheckBox(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
		if (isChecked) {
			setImageResource(R.drawable.showhint_check_white);
		} else {
			setImageResource(R.drawable.note_checkbox_uncheck);
		}
	}

	public boolean isChecked() {
		return isChecked;
	}
}
